package com.icedevcloud.common.core.page;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 *  分页结果
 * </p>
 *
 * @author dengbing
 * @since 2023-08-20
 */
@Schema(name = "分页结果")
@Data
public final class PageResult<T> implements Serializable {

    @Schema(description = "数据")
    private List<T> records;

    @Schema(description = "总数")
    private Long total;

    @Schema(description = "当前页")
    private Long page;

    @Schema(description = "每页显示条数")
    private Long pageSize;

    @Schema(description = "当前分页总页数")
    private Long pages;

}
